<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" /> 
		<link rel="stylesheet" href="css/common.css" />
		<link rel="stylesheet" type="text/css" href="css/addAddress.css">
		<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
		<script type="text/javascript" src="js/angular.min.js" ></script>
		<script type="text/javascript" src="js/global.js"></script>
		<script class="resources library" src="js/area.js" type="text/javascript"></script>
		<script type="text/javascript" src="js/changeAddress.js"></script>
		<title>修改地址</title>
	</head>
	<body>
	<header>
		<span class="return"><a href="javascript:void(0)" onclick="javascript :history.go(-1)"><img src="image/返回.png"></a></span>
		<span class="sign_header">修改地址</span>
	</header>
	<div class="container" ng-app="myApp" ng-controller="myCtrl">
		<div id="alert" ng-if="no">
			<div class="err_contact">{{ message }}</div>
		</div>
		<ul class="sign_contact">
			<li>
				<dl>
					<dt><span>*</span>收获人</dt>
					<dd>
						<input id="name" type="text" placeholder="收货人姓名" ng-model="name">
						
					</dd>
				</dl>
			</li>
			
			<li>
				<dl>
					<dt><span>*</span>手机号</dt>
					<dd>
						<input id="cellphone" ng-model="mobile" type="text" placeholder="方便配送员联系您">
						
					</dd>
					
				</dl>
			</li>
			
			<li>
				<dl>
					<dt>固话</dt>
					<dd>
						<input id="phone" ng-model="phone" type="text" placeholder="可以选填">
						
					</dd>
				</dl>
			</li>
		
			<li>
				<dl>
					<dt><span>*</span>收货地址</dt>
					<dd>
						<div id="wht">
							<div class="info">
								<div>
									<select id="s_province" name="s_province"></select>  
									<select id="s_city" name="s_city" ></select>  
									<select id="s_county" name="s_county"></select>
												    
									<script type="text/javascript">_init_area();</script>
								</div>
								<div id="show"></div>
							</div>
						</div>
						<script type="text/javascript">
							var Gid  = document.getElementById ;
							var showArea = function(){
								Gid('show').innerHTML = "<h3>省" + Gid('s_province').value + " - 市" + 	
								Gid('s_city').value + " - 县/区" + 
								Gid('s_county').value + "</h3>"
							}
							//Gid('s_county').setAttribute('onchange','showArea()');
						</script>
						
					</dd>
				</dl>
			</li>
			<li>
				<dl>
					<dt><span>*</span>详细地址</dt>
					<dd >
						<input type="text" placeholder="具体的街巷单元等" ng-model="detailedAddress">
						
					</dd>
					
				</dl>
			</li>
			
			<li>
				<dl>
					<dt><span>*</span>邮政编码</dt>
					<dd> 
					<input type="text" placeholder="所在地的邮编" ng-model="code">
						
					</dd>
				</dl>
				
			</li>
		</ul>
		<div class="sign_btn" ng-click="addAddress()">确认修改</div>
		<div class="alert" ng-show="reminder"></div>
		<div class="reminder" ng-show="reminder">
			<p>温馨提示</p>
			<p>{{ message }}</p>
			<p ng-click="close()">确定</p>
		</div>
	</div>
	
	</body>
</html>